package com.felight.examples;
class Calculator {

	// Generate Random Array of char elements of size N
				public static char[] generateRandomCharArray(int size) {
					char temp;
					char[] result = new char[size];
					int i = 0;
					while (i < size) {
						temp = (char) (Math.random() * 100);
						if ((temp >= 'a' && temp <= 'z') || (temp >= 'A' && temp <= 'Z'))
							result[i++] = temp;
					}
					return result;
				}

	//One more method has been added
	public static void printIntArray(int[] array) {
		for(int i=0; i<array.length; i++)
			System.out.println(array[i]);
	}
	public static int[] generateRandomIntArray(int size) {
		int[] result = new int[size];
		for(int i=0; i<result.length; i++)
			result[i] = (int)(Math.random()*1000);			
		return result;
	}
	/**
	<br/> <h2> public int add(int n1, int n2) </h2>
	accepts to integers and returns addition of that number 
	*/
	public int add(int n1, int n2) {

		return n1 + n2;
	}
	
	

}